package edu.neu.javaweb.service;

import edu.neu.javaweb.bean.Dept;
import edu.neu.javaweb.dao.DeptDao;

import java.util.List;

public class DeptService {
    public List<Dept> findAll() {
        return new DeptDao().findAll();
    }

    public Dept findById(int id) {
        return new DeptDao().findById(id);
    }

    public void add(Dept dept) {
        new DeptDao().add(dept);
    }

    public void deleteById(int id) {
        new DeptDao().deleteById(id);
    }

    public void update(Dept dept) {
        new DeptDao().update(dept);
    }
}
